package com.baizhi.feign.client.user;/*
2023/7/19
    */

import com.baizhi.model.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("admin-users")
public interface UserClient {
    @GetMapping("/user/selectByName/{name}")
    public List<User> selectByName(@PathVariable("name") String name);
    @GetMapping("/user/selectById/{id}")
    public User selectById(@PathVariable("id") Integer id);
}
